package com.ss.android.article.browser.setting;

import android.database.DataSetObserver;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ListAdapter;
import android.widget.TextView;

import com.ss.android.article.browser.R;

final class w implements ListAdapter {
    public final r a;

    w(r arg1) {
        this.a = arg1;

    }

    public final boolean areAllItemsEnabled() {
        return false;
    }

    public final int getCount() {
        return r.d(this.a).length;
    }

    public final Object getItem(int arg2) {
        return null;
    }

    public final long getItemId(int arg3) {
        return ((long)arg3);
    }

    public final int getItemViewType(int arg2) {
        return 0;
    }

    public final View getView(int arg7, View arg8, ViewGroup arg9) {
        View v0_1 = null;
        ViewGroup v0 = null;
        int v5 = 8;
        View v2 = View.inflate(this.a.getContext(), R.layout.ep, v0);
        if(r.c(this.a) == 0) {
            v0_1 = v2.findViewById(com.ss.android.article.browser.R.id.xg);
        } else if(r.c(this.a) == 1) {
            v0_1 = v2.findViewById(com.ss.android.article.browser.R.id.xh);
        }

        ((TextView)v0_1).setText(r.d(this.a)[arg7]);
        v0_1 = v2.findViewById(com.ss.android.article.browser.R.id.xj);
        View v1 = v2.findViewById(com.ss.android.article.browser.R.id.xi);
        if(r.c(this.a) == 0) {
            ((ImageView)v1).setVisibility(v5);
            ((ImageView)v0_1).setVisibility(View.VISIBLE);
        }
        else {
            ((ImageView)v1).setVisibility(View.VISIBLE);
            ((ImageView)v0_1).setVisibility(v5);
        }

        v2.setOnClickListener(new x(this, v2));
        return v2;
    }

    public final int getViewTypeCount() {
        return 1;
    }

    public final boolean hasStableIds() {
        return false;
    }

    public final boolean isEmpty() {
        return false;
    }

    public final boolean isEnabled(int arg2) {
        return false;
    }

    public final void registerDataSetObserver(DataSetObserver arg1) {
    }

    public final void unregisterDataSetObserver(DataSetObserver arg1) {
    }
}

